package io;

import java.io.FileNotFoundException;
import java.io.PrintWriter;

public class PWDemo {
    public static void main(String[] args) throws FileNotFoundException {
        PrintWriter pw = new PrintWriter("pw.txt");
        pw.println("这是一封离别信。");
        pw.println("写下我该离开的原因~");
        System.out.println("写出完毕");
        pw.close();
    }
}
